#include <iostream>
#include <string>
#include "/home/jack/network_programming/p2/rapidjson/document.h"
#include "/home/jack/network_programming/p2/rapidjson/writer.h"
#include "/home/jack/network_programming/p2/rapidjson/stringbuffer.h"
using namespace std;

int main() {
    rapidjson::StringBuffer s;
    rapidjson::Writer<rapidjson::StringBuffer> writer(s);
    writer.StartArray();

    string t1 = "aaaaa";
    writer.String(t1.c_str());
    writer.EndArray();
    
  //  cout << s.GetString() << endl;
    s.Clear();
    writer.Reset(s);
    writer.StartArray();
    string t2 = "bbbbb";
    writer.String(t2.c_str());
    writer.EndArray();
    
    cout << s.GetString() << endl;

}